package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;
import org.springframework.beans.BeanUtils;

/**
 * @ClassName: ProjectForListForInviteRequestConvert
 * @Description: SQLRequestConvert
 * @Author: SDP
 * @Date: 2022-07-12
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForListForInviteRequestConvert {
    public static ProjectForListForInvite convert(ProjectForListForInviteRequest request) {
        ProjectForListForInvite daoRequest = new ProjectForListForInvite();
        BeanUtils.copyProperties(request, daoRequest);

        daoRequest.setAccount(daoRequest.getAccount() == null ? null : daoRequest.getAccount().trim());
        daoRequest.setPassword(daoRequest.getPassword() == null ? null : daoRequest.getPassword().trim());
        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setMobile(daoRequest.getMobile() == null ? null : daoRequest.getMobile().trim());
        daoRequest.setRealname(daoRequest.getRealname() == null ? null : daoRequest.getRealname().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setLastLoginTime(daoRequest.getLastLoginTime() == null ? null : daoRequest.getLastLoginTime().trim());
        daoRequest.setSex(daoRequest.getSex() == null ? null : daoRequest.getSex().trim());
        daoRequest.setAvatar(daoRequest.getAvatar() == null ? null : daoRequest.getAvatar().trim());
        daoRequest.setIdcard(daoRequest.getIdcard() == null ? null : daoRequest.getIdcard().trim());
        daoRequest.setAddress(daoRequest.getAddress() == null ? null : daoRequest.getAddress().trim());
        daoRequest.setEmail(daoRequest.getEmail() == null ? null : daoRequest.getEmail().trim());
        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setDingtalkOpenid(daoRequest.getDingtalkOpenid() == null ? null : daoRequest.getDingtalkOpenid().trim());
        daoRequest.setDingtalkUnionid(daoRequest.getDingtalkUnionid() == null ? null : daoRequest.getDingtalkUnionid().trim());
        daoRequest.setDingtalkUserid(daoRequest.getDingtalkUserid() == null ? null : daoRequest.getDingtalkUserid().trim());
        daoRequest.setDescription(daoRequest.getDescription() == null ? null : daoRequest.getDescription().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setJoinTime(daoRequest.getJoinTime() == null ? null : daoRequest.getJoinTime().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());

        return daoRequest;
    }
}
